console = console or {}
local timeTicks = {}
function console.time(lable)
    if lable == nil then
        lable = "default"
    end
    if not timeTicks[lable] then
        timeTicks[lable] = os.timeTick()
        return true
    end
end
function console.timeEnd(lable)
    if lable == nil then
        lable = "default"
    end
    if timeTicks[lable] then
        local endTime = os.timeTick()
        print((tostring(lable) .. ":") .. tostring(endTime - timeTicks[lable]) .. "ms")
        timeTicks[lable] = nil
    end
end
